// 枚举类型
enum color { Red = 1 , Green , Blue }
let colorName:string = color[1]
console.log(colorName);

// 元组类型
// 定义初始值类型
let YZ:[String,number,number,object,boolean];
YZ = ["我是元组类型",0,1,{name:'李大庆',type:'元组'},true];
console.log(YZ);